package com.ewing.core.auth;

import java.io.Serializable;

/**
 * sms 验证码的缓存
 * 
 * @author Joeson
 */
public class SmsAuthCodeCache implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String phone;
	
	private String code;
	
	private Integer authCount;
	
	private Long cacheTime;
	
	public SmsAuthCodeCache(){
		this.cacheTime = System.currentTimeMillis();
	}
	
	public static void main(String[] args) {
		System.out.println(System.currentTimeMillis());
	}

	public SmsAuthCodeCache(String phone, String code, Integer authCount) {
		super();
		this.phone = phone;
		this.code = code;
		this.authCount = authCount;
		this.cacheTime = System.currentTimeMillis();
	}
	
	public Long getCacheTime() {
		return cacheTime;
	}

	public void setCacheTime(Long cacheTime) {
		this.cacheTime = cacheTime;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Integer getAuthCount() {
		return authCount;
	}

	public void setAuthCount(Integer authCount) {
		this.authCount = authCount;
	}

	

}
